<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="common/tag.jsp"%>
<div id="top">
	<div class="index-top">
		<div class="index-top-left">
			<a href="javascript:;" onclick="addfavorite();">收藏本站</a>&nbsp;&nbsp;
			<c:choose>
				<c:when test="${user ==null}">
					<a href="javascript:void(0);" onclick="javascript:$.util.login();" style="color: #00BC3E;">我要签到</a>
				</c:when>
				<c:otherwise>
					<a href="user/index" onclick="javascript:void(0);" style="color: #00BC3E;">签到</a>
				</c:otherwise>
			</c:choose>
		</div>
		<!-- 顶部 -->
		<div class="index-top-right">
			<c:choose>
					<c:when test="${empty user}">
						<span style="color: #20C0FC;" id="no-login">你还未登录</span>
						<a href="javascript:void(0);" onclick="javascript:$.util.login();" 	target="_self" id="lj-login">,立即登录</a>&nbsp;
						<a href="public/user/register" style="color: #FF7A32;" id="free-login">免费注册</a>&nbsp;
					</c:when>
					<c:otherwise>
						<span style="color: #00BC3E;">欢迎你,${user.chName }</span>
						<a href="user/index" target="_black" title="${user.chName }" class="index-top-right-center" >
							<img alt="" src="public/user/showPicture/${user.id }">
						</a>&nbsp;&nbsp;
					</c:otherwise>
			</c:choose>
		</div>
	</div>
	<!-- logo和搜索 -->
	<div class="top-center">
		<div class="top-center-logo">
			<!-- <img alt="" style="width: 199px;height: 80px;" src="images/reading-study.png" /> -->
		</div>
		<div class="top-center-search">
			<div class="top-center-search-input">
					<input type="text" name="searchText" id="searchText"  placeholder="请输入搜索的内容">
			</div>
			<div class="top-center-search-btn">
				<button id="search-btn">搜&nbsp;&nbsp;索</button>
			</div>
		</div>
	</div>
	<!-- 导航栏 -->
	<div class="daohl-div">
		<div class="daohl">
			<ul>
				<li><a href="public/index">首页</a></li>
				<!-- <li><a href="public/interlocution">资讯</a></li> -->
				<!-- <li><a href="public/codeList">代码</a></li> -->
				<li><a href="public/bookList">书籍</a></li>
				<!-- <li><a href="public/interlocution">文档</a></li> -->
				<!-- <li><a href="public/interlocution">博文</a></li> -->
				<li><a href="public/interlocution">问答</a></li>
			<!-- 	<li><a href="public/interlocution">招聘</a></li>
				<li><a href="public/interlocution">外包</a></li> -->
				<li><a href="public/examTypeList">考试</a></li>
				<!-- <li><a href="javascript:showAlertDiv('开发中');">论坛</a></li> -->
				<!-- <li><a href="public/suggestion">意见</a></li> -->
				<!-- 	<li><a href="public/version">版本</a></li> -->
			</ul>
		</div>
	</div>
</div>

